package o;

import android.view.View;
import com.huawei.support.widget.HwScrollbarView;
import java.lang.ref.WeakReference;

public class fmc extends SkinAttr {

    static final class d extends fkz<SkinAttr, Integer> {
        private WeakReference<HwScrollbarView> ˋ;

        public /* synthetic */ void ॱ(Object obj) {
            ˏ((Integer) obj);
        }

        private d(HwScrollbarView hwScrollbarView) {
            this.ˋ = new WeakReference(hwScrollbarView);
        }

        public void ˏ(Integer num) {
            HwScrollbarView hwScrollbarView = (HwScrollbarView) this.ˋ.get();
            if (hwScrollbarView != null) {
                flg.ˏ(hwScrollbarView, num.intValue());
            }
        }
    }

    public fmc() {
        this.ˎ = 0;
    }

    public void ˎ(View view, boolean z) {
        if (view instanceof HwScrollbarView) {
            HwScrollbarView hwScrollbarView = (HwScrollbarView) view;
            if ("color".equals(this.attrValueTypeName)) {
                this.ʽ = "color";
                fks.ˎ(view.getContext(), this, new d(hwScrollbarView)).ॱ(z);
            }
        }
    }
}
